package com.chisheng.common;

import java.util.List;

/**
 * 查询数据页
 *
 * @author chisheng
 * @since 2021-11-05
 */
@SuppressWarnings("unused")
public class Page<T> {

    /**
     * 当前页
     */
    protected Integer current;

    /**
     * 每页显示数据条数
     */
    protected Integer size;

    /**
     * 总记录数
     */
    protected Long total;

    /**
     * 数据列表
     */
    protected List<T> rows;

    public Page() {
    }

    public Page(Integer current, Integer size, Long total, List<T> rows) {
        this.current = current;
        this.size = size;
        this.total = total;
        this.rows = rows;
    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

}
